package com.wx.tgp.designpattern.appearancePattern;

/**
 * 外观类
 */
public class Facade {

    private SystemOne one;
    private SystemTwo two;
    private SystemThree three;
    private SystemFour four;

    public Facade(){
        this.one = new SystemOne();
        this.two = new SystemTwo();
        this.three = new SystemThree();
        this.four = new SystemFour();
    }

    public void methodA(){
        System.out.println("方法组1......");
        one.subSystemOne();
        two.subSystemTwo();
        four.subSystemFour();
    }

    public void methodB(){
        System.out.println("方法组2.....");
        three.subSystemThree();
        four.subSystemFour();
    }
}
